package com.hanlink.dsp.ui.widget;

import android.content.Context;
import android.util.AttributeSet;

import com.edge.pbxdsp.R;


/**
 * Created by zhb on 2017/8/11.
 */

public class LowInputCheckBox extends androidx.appcompat.widget.AppCompatCheckBox {
    public LowInputCheckBox(Context context) {
        super(context);
    }

    public LowInputCheckBox(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public LowInputCheckBox(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public void setEnabled(boolean enabled) {
        super.setEnabled(enabled);
        if (enabled) {
            setCompoundDrawablesWithIntrinsicBounds(0, 0, com.hanlink.res.R.drawable.summing_low_ch_selector, 0);
        } else {
            setCompoundDrawablesWithIntrinsicBounds(0, 0, com.hanlink.res.R.drawable.summing_low_ch_disable, 0);
        }
    }
}
